
package com.ciberiasoluciones.cibervoto.utility;

import com.ciberiasoluciones.cibervoto.controlador.Controlador;


public class ControladorSingleton
{
    private Controlador instance;
    
    public ControladorSingleton(){}
    
    public Controlador getInstanceControlador() {
        if (instance == null) {
            createInstance();
        }
        return instance;
    }
    
    private synchronized void createInstance() {
         if (instance == null) {
            instance = new Controlador();
        }
    }
    
   
}